package com.swak.router;

import com.swak.router.pattern.PathContainer;
import com.swak.router.pattern.PathContainer.Options;

import lombok.Getter;

@Getter
public class Route {

	private final String path;
	private final PathContainer requestPath;

	public Route(String path) {
		this(path, Options.HTTP_PATH);
	}

	public Route(String path, Options options) {
		this.path = path;
		this.requestPath = PathContainer.parsePath(path);
	}
}